﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 约苗秒杀.Models
{
    /**
 * Created on 2020-07-23.
 *
 * @author wangxiaodong
 */
    public class Config
    {

        /**
         * 微信配置
         */
        public static string cookies = "";
        public static string tk = "";

        public static string reqHeader = "GET https://miaomiao.scmttec.com/seckill/seckill/list.do?offset=0&limit=10&regionCode=5101 HTTP/1.1\n" +
                "Host: miaomiao.scmttec.com\n" +
                "Connection: keep-alive\n" +
                "Accept: application/json, text/plain, */*\n" +
                "Cookie: _xxhm_=%7B%22heade" +
                "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat\n" +
                "X-Requested-With: XMLHttpRequest\n" +
                "content-type: application/json\n" +
                "tk: wxapptoken:10:e0963da6b3e544f48fef5f6f27c32b5f\n" +
                "Referer: https://servicewechat.com/wxff8cad2e9bf18719/7/page-frame.html\n" +
                "Accept-Encoding: gzip, deflate, br\n" +
                "\n";

        /**
         * 接种成员ID
         */
        public static int memberId;
        /**
         * 接种成员身份证号码
         */
        public static string idCard;
        /**
         * 接种成员姓名
         */
        public static string memberName;
        /**
         * 选择的地区代码
         */
        public static string regionCode = "5101"; 
    }

    public class ConfigTkAndCookie
    {
        public string Tk { get; set; }
        public string Cookie { get; set; }
    }
}
